<?php


/** 
 * 路由配置
 * @author Legend. <xcx_legender@qq.com>
 * @param 
 * @return 
 */

return array(

	'URL_ROUTER_ON' => true,

	'URL_ROUTE_RULES' => array(
		
		// topic
			'topics/mine/appToken/:appToken'       => 'Topic/mine',
			'/^topics\/set\/(.+)(\/appToken)?$/' => 'Topic/set?ids=:1',
			'/^topics\/set\/(.+)\/appToken\/(.*)$/' => 'Topic/set?ids=:1&appToken=:2',
			'/^topics\/(\d+)(\/games)?$/'        => 'Topic/videos?id=:1',
			'/^topics\/(\d+)\/games\/(.*)$/'        => 'Topic/videos?id=:1&games=:2',
			'topics/mine'       => 'Topic/mine',
			'topics/set'        => 'Topic/set',
			'topics/videos'     => 'Topic/videos',
			'topic/mine/appToken/:appToken'       => 'Topic/mine',
			'/^topic\/set\/(.+)(\/appToken)?$/' => 'Topic/set?ids=:1',
			'/^topic\/set\/(.+)\/appToken\/(.*)$/' => 'Topic/set?ids=:1&appToken=:2',
			'/^topic\/(\d+)(\/games)?$/'        => 'Topic/videos?id=:1',
			'/^topic\/(\d+)\/games\/(.*)$/'        => 'Topic/videos?id=:1&games=:2',
			'Topics/videos'        => 'Topic/videos',
			'topics'            => 'Topic/all',
		

		// video
			 'Video/info'    => 'Video/id',
			 // 'Video/:id'     => 'Video/id',
		// user
			
		// top
			// top10
			'top/10'         			=> 'Top/top10',
			'top/10/month'  			=> 'Top/top10?type=month',
			'top/10/week'      	 		=> 'Top/top10?type=week',

			// daily recommend
			'/^top\/daily\/(\d+)$/'    	=> 'Top/dailyRecomment?page=:1',
			'top/daily'    				=> 'Top/dailyRecomment',
		
		// ad
		'ads/:code'					=> 'Ad/all',
		'ads'						=> 'Ad/all',
		'a_d/:code'                 => 'Ad/all',



		// test
		
		'user/del/:username' => 'UnitTest/delUser',




		),

	);